﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
/// <summary>
/// 随从牌数据
/// </summary>
[CreateAssetMenu(fileName = "MonsterCardSO", menuName = "CardGame/MonsterCardSO")]
public class MonsterCardSO : CardSO
{
    public int Attack;

    public int Health;

    public bool IsCharge;

    public bool IsTaunt;
    /// <summary>
    /// 亡语效果
    /// </summary>
    public SkillSO DeathWhisper;
    /// <summary>
    /// 怪兽描述，与游戏机制无关
    /// </summary>
    public string Description;
    /// <summary>
    /// 获取卡牌描述
    /// </summary>
    /// <returns></returns>
    public override string GetDescription()
    {
        StringBuilder sb = new StringBuilder();
        if (IsCharge) sb.Append("冲锋，");
        if (IsTaunt) sb.Append("嘲讽，");
        if (DeathWhisper != null) sb.Append(DeathWhisper.Description);

        if (sb.Length == 0) sb.Append(Description);
        return sb.ToString();
    }
}

